package io.lckgroup.modules.lck.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import io.lckgroup.common.utils.PageUtils;
import io.lckgroup.modules.lck.entity.ShopFoodAuditEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * 菜品审核表
 *
 * @author srq
 * @email siruiqi@siruiqi.com
 * @date 2020-01-19 19:14:39
 */
public interface ShopFoodAuditService extends IService<ShopFoodAuditEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * @return 联表查询 商家 审核 菜品
     */
    IPage<Map<String, Object>> selectPageByAuditState(@RequestParam Map<String, Object> params);

    // 审核菜品  调用两个dao
    void AuditFood(@RequestParam Map<String, Object> params);

    // 批量审核
    void BatchAudit(@RequestBody Long[] ids);
}

